package com.quanquan.store.service;

import com.quanquan.store.entity.StoreCoupon;
import com.quanquan.store.repository.StoreCouponRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:StoreCouponService
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/3/20 16:54
 * @Version 1.0
 */
@Service
public class StoreCouponService {

    @Autowired
    private StoreCouponRepository storeCouponRepository;

    public List<StoreCoupon> queryByStoreId(String storeId, Integer page, Integer size){
        List<StoreCoupon> storeCouponList = storeCouponRepository.findByStoreId(storeId,page*size,size);
        return storeCouponList;
    }


}
